package com.rapida.pet.core;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;

import com.rapida.framwork.IBOutlet;
import com.rapida.framwork.IVOutlet;

/**
 * Created by mm on 2015/1/19.
 */

public class PetBehavieUI extends FloatWindow {
	public PetBehavieUI(Context context) {
		super(context);
	}

	public void stateChangedSlot(PetBehavie.PetState v) {
		switch (v) {
		case P1:
			assistive.findViewById(R.id.screen_main_power).setBackgroundResource(R.drawable.d1);
			break;
		case P2:
			assistive.findViewById(R.id.screen_main_power).setBackgroundResource(R.drawable.d2);
			break;
		case P3:
			assistive.findViewById(R.id.screen_main_power).setBackgroundResource(R.drawable.d3);
			break;
		case P4:
			assistive.findViewById(R.id.screen_main_power).setBackgroundResource(R.drawable.d4);
			break;
		case P5:
			assistive.findViewById(R.id.screen_main_power).setBackgroundResource(R.drawable.d5);
			break;
		}
	}
}
